package com.softtown.modules.organization.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.softtown.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 组织变更履历（员工）
 *
 * @author Dingyayong
 * @version v1.0
 * @create 2019-05-17 13:55
 **/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("comp_org_hst_empl")
public class CompOrgHstEmplEntity extends BaseEntity {
    private static final Long serialVersionUID = 1L;

    /**
     * 公司所属id
     * isNullAble:0
     */
    private Long compId;

    /**
     * 员工id
     * isNullAble:0
     */
    private Long emplId;

    /**
     * 到期时间
     * isNullAble:1
     */
    private Date exprDate;

    /**
     * 部门id(变更前)
     * isNullAble:1
     */
    private Long deptIdOld;

    /**
     * 部门id(变更后)
     * isNullAble:1
     */
    private Long deptIdNew;

    /**
     * 更新者
     * isNullAble:1
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;

    /**
     * 更新时间
     * isNullAble:1
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /**
     * 更新时间戳
     * isNullAble:1
     */
    private String updateTimestamp;

    /**
     * 逻辑删除
     * isNullAble:1
     */
    private Integer isDeleted;

    /**
     * 员工姓名
     */
    private String realName;

    /**
     * 部门名称
     * isNullAble:0
     */
    private String name;

    /**
     * 现部门名称
     * isNullAble:1
     */
    private String currentName;

    /**
     * 创建者名字
     * isNullAble:1
     */
    private String creatorName;
}

